package com.usian.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.article.dto.ArticleHomeDto;
import com.usian.model.article.dto.ArticleInfoDto;
import com.usian.model.article.pojos.ApArticle;
import com.usian.model.common.dtos.ResponseResult;

/**
 * @Description:
 * @Auther:ASS
 * @Date:2023/2/22 11:20
 */
public interface ApArticleService extends IService<ApArticle> {
    public ApArticle saveApArticle(ApArticle apArticle);


    /**
     * 根据参数加载文章列表
     * @param type 1为加载更多  2为加载最新
     * @param dto
     * @return
     */
    ResponseResult loadList(Short type, ArticleHomeDto dto);


    /**
     * 加载文章详情
     * @param dto
     * @return
     */
    public ResponseResult loadArticleInfo(ArticleInfoDto dto);


    public ResponseResult loadArticleBehavior(ArticleInfoDto dto);
}
